home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 3 / 003.d81 / dos part 6 < prev    next >
Text File  |  2022-08-26  |  2KB  |  123 lines

  1. ---------Dos & Don'ts-Part 6----------
  2.  
  3.  
  4.  
  5. The format of the SCRATCH command is:
  6.  
  7.    @S:filename
  8.  
  9. So, in this case, we just type:
  10.  
  11.    @S:MENU      (Delete old MENU)
  12.    _MENU        (Save new MENU  )
  13.  
  14.    SAVING MENU00,OK,00,00   (Status)
  15.    READY.
  16.  
  17. If you use the Wedge version of SAVE
  18.  
  19. ('_filename'), you automatically get a
  20.  
  21. Disk Status display when the save is
  22.  
  23. done (or bombed)!  At any rate, since
  24.  
  25. the old MENU was SCRATCHed, there was
  26.  
  27. no MENU currently existing.  The rea-
  28.  
  29. son this method is not particularly
  30.  
  31. safe is that if a power failure or
  32.  
  33. some other catastrophe should occur
  34.  
  35. between the time you SCRATCH the old
  36.  
  37. file and the time you SAVE the new
  38.  
  39. file, you are left with no file.
  40.  
  41.  A better way is to change the name of
  42.  
  43. the old version without SCRATCHing it.
  44.  
  45. (You can SCRATCH it later if you want,
  46.  
  47. but backups never hurt anyone!)  To
  48.  
  49. change the name of a file, use the
  50.  
  51. RENAME maintenance command.  The for-
  52.  
  53. mat is:
  54.  
  55.   @R:newname=oldname
  56.  
  57. So, in our case, we can type:
  58.  
  59.   @R:OLDMENU=MENU  (Rename old MENU)
  60.   _MENU            (Save new MENU  )
  61.  
  62.   SAVING MENU00, OK,00,00
  63.   READY.
  64.  
  65. and we are done!
  66.  
  67.  
  68. If a file is not 'CLOSEd' after being
  69.  
  70. 'OPENed', the directory will show an
  71.  
  72. asterisk ('*') just before the file
  73.  
  74. type, and a file length of zero.  DO
  75.  
  76. NOT SCRATCH SUCH A FILE!!  There is a
  77.  
  78. way to get rid of all such files on a
  79.  
  80. disk.  If, for example, we find:
  81.  
  82.    @$
  83.    0   'MY FIRST DISK  ' M1 2A
  84.    1   'DOS WEDGE'        PRG
  85.    5   'DOS 5.1'          PRG
  86.    14  'MENU'             PRG
  87.    0   'MENU FILE'       *SEQ
  88.    601 BLOCKS FREE.
  89.  
  90. that means that 'MENU FILE' was never
  91.  
  92. 'CLOSEd'.  More than likely, it is too
  93.  
  94. late to close it now, so just type:
  95.  
  96.    @V
  97.  
  98. This is the VALIDATE maintenance com-
  99.  
  100. mand.  It checks all the blocks of all
  101.  
  102. the files on the disk, and in the pro-
  103.  
  104. cess, removes any unclosed files.  It
  105.  
  106. can take some time depending on how
  107.  
  108. much of the disk is used.
  109.  
  110.  Next issue, we will discuss how to
  111.  
  112. SCRATCH more than 1 file with 1 com-
  113.  
  114. mand, how to remove ALL the files on
  115.  
  116. a disk and change the disk name, and
  117.  
  118. how to get a SPECIALIZED Disk
  119.  
  120. Directory.
  121.  
  122. ------------End of Article------------
  123.